     <script>
		$(document).ready(function() {
		<? if($halamanklik==''){?>
		$('.menu').load('<?=base_url('admin/home/halaman')?>/');
		<? } ?>
			$('.form input').bind('click', function() {
				$('.form .arrow-cont').each(function(i) {
					$(this).attr('class', 'arrow-cont');
				});
				$(this).parent('td').parent('tr').attr('class', 'arrow-cont current');		
			});
			$('.form input.submitpage').bind('click', function() {
				var thisobj=$(this);
				$.ajax({
					type: 'POST',
					url: '<?=base_url('admin/home/addpage')?>',
					data: 'title='+$(thisobj).prev().val()+'&id_client='+$('#id_client').val()+'&page_number='+$('#page_number').val()+'&id_page='+$(thisobj).prev().attr('id'),
					beforeSend: function() {				
						$('.form input.submitpage').after("<img style='float: right; position: absolute; top: -5px; right: 3px;' id='wait' src='<?=$this->config->item('images').'loading.png';?>' />");
					},
					success: function(data) {
						$('#wait').remove();
						$('#content').load('<?=base_url('admin/home/editdetail')?>/'+data);
						$('.menu').html('');
					}
				});
				return false;				
			});		
		});
	 </script>
	 <div class="form">
	 <input type="hidden" value="<?=$id_client?>" id="id_client" name="id_client" />
	 <input type="hidden" value="<?=$page_number?>" id="page_number" name="page_number" />
      <table id="addpage" width="100%">
          <tr class="arrow-cont current" >
             <td><label>1</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[0]['title']?>"  id="<?=@$currentpage[0]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][1]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>2</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[1]['title']?>"  id="<?=@$currentpage[1]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][2]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>3</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[2]['title']?>"  id="<?=@$currentpage[2]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][3]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>4</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[3]['title']?>"  id="<?=@$currentpage[3]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][4]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>5</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[4]['title']?>"  id="<?=@$currentpage[4]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][5]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>6</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[5]['title']?>"  id="<?=@$currentpage[5]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][6]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>7</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[6]['title']?>"  id="<?=@$currentpage[6]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][7]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>8</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[7]['title']?>"  id="<?=@$currentpage[7]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][8]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>9</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[8]['title']?>"  id="<?=@$currentpage[8]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][9]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>10</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[9]['title']?>"  id="<?=@$currentpage[9]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][10]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>11</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[10]['title']?>"  id="<?=@$currentpage[10]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][11]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>12</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[11]['title']?>"  id="<?=@$currentpage[11]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][12]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>13</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[12]['title']?>"  id="<?=@$currentpage[12]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][13]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
          <tr class="arrow-cont" >
             <td><label>14</label></td>
             <td>
				<input title="fill this field then click next button in right side.." value="<?=@$currentpage[13]['title']?>"  id="<?=@$currentpage[13]['id']?>" class="inputpage" type="text" name="title[<?=$page?>][14]" />
				<input type="submit" class="submitpage" value="Next" />
			 </td>
          </tr>
         
       </table>
     </div><!-- end form -->